<?php
// +----------------------------------------------------------------------
// | Swoole TCP 服务端配置项，非think-swoole
// +----------------------------------------------------------------------
return [
    //监听IP，通常为127.0.0.1
    'host' => '127.0.0.1',
    //监听端口，设置时检查端口是否被占用
    'port' => 9553,
    //日志文件记录，必须为绝对路径，且有写入权限
    'log_file' => '/project/zhuzhihao/jnhz220314/public/swoole/swoole_task.log',
    //worker进程数量，根据服务器配置设置，通常为1，具体配置参考：https://wiki.swoole.com/#/server/setting?id=worker_num
    'worker_num' => 1,
    //Task 进程的数量，合理配置，不然会导致worker进程阻塞，具体配置参考：https://wiki.swoole.com/#/server/setting?id=task_worker_num
    'task_worker_num' => 1,
    //是否开启守护进程
    'daemonize' => false
];
